package cc.admin.modules.sys.entity;

import cc.admin.common.sys.vo.TenantModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@TableName("sys_ship_type_permission")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_ship_type_permission对象", description="船舶类型菜单")
public class SysShipTypePermission extends TenantModel {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 角色id
     */
    private String shipTypeCode;

    /**
     * 权限id
     */
    private String permissionId;

    public SysShipTypePermission (String shipTypeCode,String permissionId){
        this.shipTypeCode=shipTypeCode;
        this.permissionId = permissionId;
    }
}
